package com.nmmhu.bean.animals.bam;
import com.nmmhu.bean.animals.Animal;
import com.nmmhu.bean.animals.Animals;

/**
 * @author nmm
 * @date 2024-04-2024/4/4
 * @deriction 飞禽动物
 */
public class BirdAnimals extends Animal {

    private  String name;

    public BirdAnimals(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println(String.format("%S正在吃饭",this.name));
    }

    @Override
    public void sleep(String ddesc) {
        System.out.println(String.format("%S正在%S的睡觉",this.name,ddesc));
    }
}